package com.example.cupid.service;

import com.example.cupid.pojo.Admin;
import com.example.cupid.pojo.User;

import java.sql.Date;
import java.util.List;

public interface AdminService {
    //根据付款金额降序查找
    List<User> findAllByPayDesc();
    //根据用户id查询用户
    User checkUserById(Integer userid);
    //管理员登陆
    Admin checkUser(String email, String password);

    //查找用户数
    int userCountTd(Date date);
    int userCountYd(Date dateYd);

    //查找用户id
    List<Integer> checkUserId();

    boolean updatePay(Double money,Integer id);
}
